//
//  ByNetUserApi.h
//  beibei_ios
//
//  Created by hebidu on 16/4/15.
//  Copyright © 2016年 hebidu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ByNetBaseApi.h"
#import "ByNetUserModel.h"

#define user_log_debug 1

#if user_log_debug == 1
#define UserLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define UserLog(...)
#endif

/** 用户相关接口 */ /** 朱凯 982942570@qq.com */
@interface ByNetUserApi : ByNetBaseApi

#pragma mark - 用户相关
/** 登陆 */
+ (void)login:(ByNetParamsModel *)model
      success:(void(^)(ByNetBaseResult *result))success 
      failure:(void(^)(ByNetBaseResult *result))failure;

/** 注册 */
+ (void)reigster:(ByNetParamsModel *)model
         success:(void(^)(ByNetBaseResult *result))success
         failure:(void(^)(ByNetBaseResult *result))failure;

/** 用户更新 */
+ (void)updateUserInfo:(ByNetParamsModel *)model
               success:(void(^)(ByNetBaseResult *result))success
               failure:(void(^)(ByNetBaseResult *result))failure;

/** 头像上传 */
+ (void)iconUpload:(UIImage *)icon
           success:(void(^)(ByNetBaseResult *result))success
           failure:(void(^)(ByNetBaseResult *result))failure;

/** 认证图片上传 */
+ (void)authenticationUpload:(UIImage *)icon
                     success:(void(^)(ByNetBaseResult *result))success
                     failure:(void(^)(ByNetBaseResult *result))failure;

/** 手机绑定 */
+ (void)boundMobilePhone:(ByNetParamsModel *)model
                 success:(void(^)(ByNetBaseResult *result))success
                 failure:(void(^)(ByNetBaseResult *result))failure;

/** 手机找密 */
+ (void)retrievePwd:(ByNetParamsModel *)model
            success:(void(^)(ByNetBaseResult *result))success
            failure:(void(^)(ByNetBaseResult *result))failure;


// 实名认证(一)
+ (void)realNameAttestation:(NSArray *)images
                    success:(void(^)(ByNetBaseResult *result))success
                    failure:(void(^)(ByNetBaseResult *result))failure;
// 实名认证(第二步)
+ (void)realNameAttestationNext:(ByNetParamsModel *)model
                        success:(void(^)(ByNetBaseResult *result))success
                        failure:(void(^)(ByNetBaseResult *result))failure;

// 朱凯 add
// 用户信息
+ (void)getUserInfo:(ByNetParamsModel *)model
            success:(void(^)(ByNetBaseResult *result))success
            failure:(void(^)(ByNetBaseResult *result))failure;
// 用手机查用户信息
+ (void)getUserInfoWithMobile:(ByNetParamsModel *)model
                      success:(void(^)(ByNetBaseResult *result))success
                      failure:(void(^)(ByNetBaseResult *result))failure;
// 实名认证
+ (void)authenRealname:(ByNetParamsModel *)model
               success:(void(^)(ByNetBaseResult *result))success
               failure:(void(^)(ByNetBaseResult *result))failure;
// 经纪人名片认证
+ (void)authenAgentCard:(UIImage *)card
                success:(void(^)(ByNetBaseResult *result))success
                failure:(void(^)(ByNetBaseResult *result))failure;

// 意见反馈
+ (void)feedback:(ByNetParamsModel *)model
         success:(void(^)(ByNetBaseResult *result))success
         failure:(void(^)(ByNetBaseResult *result))failure;



@end
